package com.woniuxy.cloud52.order.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单信息
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_order")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 买家ID
     */
    private Integer userId;

    /**
     * 场次ID
     */
    private Integer sessionsId;

    /**
     * 座位ID
     */
    private Integer seatId;

    /**
     * 创建时间
     */
    private LocalDateTime creatTime;

    /**
     * 订单状态：1为待付款，2为已付款，3，付款失败
     */
    private String orderStatus;

    /**
     * 支付渠道
     */
    private String tradeType;

    /**
     * 记录添加时间
     */
    private LocalDateTime rawAddTime;

    /**
     * 记录更新时间
     */
    private LocalDateTime rawUpdateTime;


}
